From eff16c83d2e3b7c22d071eee55118910b6b6941d Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sun, 25 Jun 2023 21:50:06 +0100 Subject: Support relocation of string address --- ....shedlang.compiler.testing.snapshots.Snapshotter)].expected | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.WasmCodeGenPushStringTests]/[method:pushStringIsCompiledToDataAndIndexToData(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected') diff --git a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.WasmCodeGenPushStringTests]/[method:pushStringIsCompiledToDataAndIndexToData(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.WasmCodeGenPushStringTests]/[method:pushStringIsCompiledToDataAndIndexToData(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected index 92bf46c7..f551d9c3 100644 --- a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.WasmCodeGenPushStringTests]/[method:pushStringIsCompiledToDataAndIndexToData(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected +++ b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.WasmCodeGenPushStringTests]/[method:pushStringIsCompiledToDataAndIndexToData(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected @@ -10,7 +10,7 @@ Function[1]: Memory[1]: - memory[0] pages: initial=9 Code[1]: - - func[0] size=4 + - func[0] size=8 Data[1]: - segment[0] <.data> memory=0 size=9 - init i32=0 - 0000000: 0000 0005 6865 6c6c 6f ....hello @@ -24,9 +24,13 @@ Custom: - symbol table [count=2] - 0: F func=0 [ binding=global vis=default ] - 1: D segment=0 offset=0 size=9 [ binding=global vis=default ] +Custom: + - name: "reloc.CODE" + - relocations for section: 3 (Code) [1] + - R_WASM_MEMORY_ADDR_SLEB offset=0x000008(file=0x000031) symbol=1 Code Disassembly: 00002f func[0] : - 000030: 41 00 | i32.const 0 - 000032: 0b | end \ No newline at end of file + 000030: 41 80 80 80 80 00 | i32.const 0 + 000036: 0b | end \ No newline at end of file -- cgit v1.2.3